Tic Tac Toe in Ruby using Rails