Added FPS calculation to Canvas.
Added game logic and rendering functionality.