Tic Tac Toe game in Ruby with a simple AI