Created elements to delete and also updated the move function to use the delete function.