implemented board undo button