Added code to play tic-tac-toe