Changed localization, got rid of scanning, added try/catch for
indexOutOfBoundsException. This exception occurs when the robot thinks
there is no way of getting out of its current position. This can happen
if a wooden block is placed in front of it, and the robot is surrounded
by walls and the forbidden zone.