Updated difference map logic to eliminate movement trails.