Fixed Maze Validation

I forgot two edge cases which may occur