improved game.js, twostep