Trouble with obstacle avoiding robot

AWOL:

if (frontcm > distanceLimit || frontcm == 0) {
	forward;
}


"forward;" ?

That should just be a mistype though would likely explain the wackiness of the last iteration I tried before giving up yesterday. Looking at my previous versions I at least had it entered correctly as "forward();"