random maze generation (but ugly code)