check_walls: Check the walls user's provided world
Description
This is a helper function to check ver_walls and hor_walls. It's called by check_user_world twice.
Usage
check_walls(dataset, name, nx, ny)
Arguments
dataset
Either hor_walls or ver_walls
name
Character string: "hor_walls" or "ver_walls"
Value
If a misespecification is found, this function produces a stop and
provides a descriptive error message.