setup game code