Update game.js

Game is now half of the window’s height and width. Added JSDoc
compliant documentation style for functions.