( dpa )- Guinea captain Pascal Feindounou set up his side's 3-2 victory in a Group A African Nations Cup match played in Accra on Thursday with two goals, but was then red-carded for kicking out at an opponent.
The St Etienne midfielder opened the scoring for Guinea in the 10th minute with an outrageous free-kick over the wall and past a bewildered Khalid Fouhami in goals for Morocco.
Just two minutes later Morocco nearly equalized through Youssef Hadji whose shot with the outside of the boot was brilliantly tipped over the bar by Kemeko Camara .
The match came to life with an exciting eight minute spell in the second half that saw three goals and a red card.
Feindouno set up Ismael Bangoura in the 58th minute to double Guinea's score, but Morocco pulled one back within seconds of the restart.
Hadji played the ball to substitute Hicham Aboucherouane , who found himself in space and with acres of space in front of him, he unleashed a powerful shot that gave Camara no chance.
Three minutes later Guinea again had their two-goal lead as Feindounou scored from the penalty spot after Michael Basser pulled down Souleymane Youla in the area.
Feindounou received his marching orders in the 66th minute when South African referee Jerome Damon saw him kicking out at Elamin Erbate , who made the most of it and rather theatrically fell to the ground.
In the last minute Abdeslam Ouaddou pulled back another for the North Africans, but it was a case of too little too late, as they simply ran out of time to snatch an equalizer.
The victory sees Guinea back in contention for a place in the quarter-finals after losing their opening game to hosts Ghana 2-1. Morocco, who beat Namibia 5-1 in their first game, currently top the group with three points on goal difference from Ghana and Guinea.