Tic tac toe in Ruby