They do exactly what they are told to do. If the robot is told to walk right through a wall, it will try to do so. That may damage the wall and the robot. Remember, an error in a computer program is called a bug. The process of finding and fixing a bug is called debugging.
Programmers tend to spend a lot of time testing and debugging their programs.
Your group should test out the program before others try it. You may need to test and debug your program several times to get it right. These activities are to be discussed by your group. The robot you are programming only understands four different instructions. Give several examples.