changed sample.cpp so that the bot moves in a square path