Tic Tac Toe version from Umair Jabbar for the class.