Cleaned up maze error checking process. Seems to be working fully