public int turnRight(Organism target, int index) { double cost = 0.25 * energyMod; target.setAngle(target.getAngle() - turnMod); target.drainEnergy(cost); return index + 1; }