procedual generated levels super mario using wave collapse function