Refacto Game.js