Fix visibility updates with many simultaneously moving robots.
Prevent the robot from going out of bounds.
Prevent out of bounds access near the map's borders when calculating visibility.