Ruby script that uses unsupervised learning to learn tictactoe