I found a type when I fetched the the game mode from the session variable and when I passed it from the requests.js to game.js