java maze generator - depth first search