better block spawning

using running average instead of point to point