robot can detect the end, was turning around sometimes...