Yikes, that sure is a lot of unformatted code- make sure you use the highlight tags to make code easier to read.

Think about the flow of the program. When does the player take a turn? When does...