Unbeatable TicTacToe in ruby