gameLogic.js changes