implemented a basic obstacle avoiding robot