A lot of refactoring done.

Finally fixed game physics and clean code. Need to fix the collision
with the left side of the screen though.