Main class and outline of game loop