move initialization from main.cpp to game.cpp