Fixed find greatestAmount() to allow for equal quanities.