Refactored game logic. Movement, swipes, and collisions are functional.