In open play, only team-mates of the ball carrier/last person to play the ball can be offside. If "the ball is being kicked around a bit on the ground" then the team potentially off-side is changing frequently, perhaps as often as each kick. But at each kick, they are put back onside...