added getWalkable function