my version of the code for the game I wrote for exercise 36 of learn python the hard way