Fixes to prepareMaze.py