Refactored Game class (create update function)