added functionality for retrieving game state from server