changed MazePiece so it is more parameterized.