Refactored update method in GameModel