initial game code