Creating main class of a game.