Add some println's in there to see what is being executed....Hint: see the playGame method...the while loop will continue indefinitely