Adds rudimentary collision detection.

Takes into account the width and height of the robot.