Refactor of Ruby TTT game, implementing the minimax algorithm