Java implementation of algorithm for assigning Rover to Labs