added update logic for game process