Watch the below video and consider your ruling, along with the reasoning, before opening the analysis.
The team in blue take a short corner. The two players play a one-two between each other and cross the ball in to the penalty area. The player who crosses the ball in receives the ball in an offside position. The assistant correctly signals to the referee the player is offside. The referee should award a free kick to the opposition.