update gameLogic