Creation of InitGame() function.