Added solution for tic-tac-toe