If a player is fouled in the box it's a penalty shot if he is fouled outside the box it is a free kickOffside is when the player to whom the ball would eventually go is closer to the opposing goal than the second last player of the opposing team, at the moment when the ball is leaving the passers foot. Got that? (It's kind of hard to explain as English is not my mother tongue)