Replaced the collision detection with a check of the angle