Fixed it so that there are getOnBarriers and getOffBarriers as inputs for the Elevator constructor now, grabbed row i from matrix