Refactoring for better decoupling.
Collision detection added.
Game over added.