Fixed "tiny dead end" problem

Fixed the issue of the maze generating with numerous "tiny dead ends".