Added game state and socket setup