HW4: adding GameApi.GameState