refactored ball and pipes as separate entities. Added collision detection for the ball and pipes. Ball now turns red when colliding with pipes.