Change the argument of the method setHighestEnergyHitPosition from two doubles to an array