tic tac toe ruby puzzle got the algorithm for hard from http://www.wikihow.com/Win-at-Tic-Tac-Toe