Made a game class and loop