An unbeatable tic-tac-toe AI built in Ruby