Generates a randomized n by m maze