add tic-tac-toe solution in ruby