Worked on tic-tac-toe