worked on tic-tac-toe solver