Another implementation of the initilization of game