added undo button

Add undo button when game is played.