Help with programming Arduino Robot

Hi,

There is no integrated ultrasonic sensor I am adding one, the robot it the official arduino robot as can be found on the site and I basically want it to manoeuvre around a room without bumping into an object, that's pretty much it.

Thanks!