Fixed indexOutofBound and begun fixing roadlogic