implemented post controller and endpoint to check if game state