created method that return the obstacle map with a number