Tic Tac Toe game in Ruby using Minimax algorithm