create Maze class to hold maze definition and validate movements