I failed to make it working in a nice and shiny way, main problem is to set the "while loop" false if an obstacle occurs without spoiling Rubys nice handling