Fixed up the game loop, added fps regulator and fps counter.
Added collision detection and added boundry walls.