Extracted methods in moveToNextMachine() in the Job class in order to
shorten the method.