playing with checking for obstacles