synced up with code changes from tic-tac-toe.rb wc: 2452