moved most of main() to functions of a Game class, mainly for readability