Now comparing the abs of the bestSum and tempSum; also changed for loops to be >0, so the last element isn't used