Fixed issues with maze pattern and game.