Updated update method in Game.java