refactoring of updateGameStatus