Irregular shapes collision detection

this returns false if shape1 is inside shape2