Preconditions include all(len(landmap) == len(row) for row in landmap) i.e. maps are square, yet in the tests there are non-square maps.