Just to explain why JavaPF recommended you change this code:

//preform check to see if the robots's battery is old
if((batteryOld.equals(batteryCompareYes))){
batteryPenalty...