Implemented jQuery .each() to remainingPoints()