basic, first-iteration, almost-working levelgen