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