Accn Bug Fix and Boundary Implementation

Fixed the bug where the rectangle would accelerate if the key was held
down, and bounded the rectangle's movement to the canvas
Rectangles are now objects

Implemented rectangles as objects with a draw method, and updated the
drawing function accordingly
Renamed game.html to index.html

renamed the html file to the standard 'index.html'