Added setTotal function

-Added setTotal function,
-When animals are moved into the trashcan, total is now updated.