Updating game.js with refactored version from integrating into WinKeticJS boilerplate