Auto level generation 1.0

complete auto generation script version 1