added quantity check before being able to add items into a cart
got the insert and delete contains to update the totalPrice