fixed the index out of bounds error.
removed a failing test that prevented from creating a jar file
fixed the logic from or to and because all of the conditions must be met
refactored elevator controller class and added some methods