PHP maze generator