Refactored Game.js