I have asked before. Can you please have someone who understands the offside rule write the programme for it (program if in USA) ? It's called even when the offside player isn't involved in the play! READ THE RULES!
And while they're at it, take out that bit that makes you automatically pass to an offside player even when you were playing a ball to someone else. It just slows play down and makes it annoying.