refactored control input and projectile class to optimize performance by reducing repeat tasks and deleting off screen objects