Setting up the game for both server and client