simpleGame.js, game engine