It was a day of scrappy games at the World Cup on Wednesday, led by Spain beating a courageous Iran side.
None of the games were particularly great spectacles as Uruguay defeated Saudi Arabia and Portugal got a win over Morocco, with all three games finishing with 1-0 scorelines.
In Kazan, Diego Costa claimed his third goal of the tournament but he hardly knew about it, as the ball deflected off his legs from an attempted clearance by hapless Iran defender Ramin Rezaeian.
The result leaves Spain joint top of their group with Portugal on four points, with Iran close behind on three going into the third and final set of games.
There was heartbreak for Iran when a goal by Saeid Ezatolahi was ruled out for offside after being reviewed by the video assistant referee (VAR).
Elsewhere, a below-par Portugal were again rescued by Cristiano Ronaldo as they stumbled to victory over Morocco.
The result means the North African side are the first to be eliminated from the World Cup.
Portugal struggled to impose themselves and ended up defending for long spells, leaving coach Fernando Santos unimpressed.
"We have to look at this, we lost control of the game," he said.
"We misplaced a lot of passes, we lost confidence ... it was inexplicable. If in a match against players like they have, if you don't have the ball, they wear you down and you get into trouble."
Back in Moscow, Luis Suarez's goal in his 100th cap secured two-time champions Uruguay a win over Saudi Arabia and a spot in the knockout stage.
Suarez, who became the sixth Uruguay player to reach the century mark for his country, scored the only goal of the match in the 23rd minute.
"It was great. The main thing was that we won and advanced to the next round. This wasn't a very easy match," Suarez said.
"Our goal is to go as far as we can and we will do all we can for that to happen ... We are satisfied. That was an important match for us."
The Uruguay result ensured hosts Russia go through to the second round after dominant performances in their first two matches.
Russia will now take on Uruguay in Samara on Monday with top spot in Group A at stake.
Russia hold the goal difference advantage with the pair each on six points.
Both can expect tough encounters in the next round regardless of the outcome with Spain and Portugal likely to emerge as their opponents from Group B.