Added undo functionality to TicTacToe

Need to implement in through CTRL + Z option.