refactored won method
turned game into a class. Script now calls instance of game