Maze validation fixes

Made maze validation more readable and completely got rid of the try
catch statements