Created a game class to make the main script more readable.