Working maze generation with goal