I have been using extreme speed a lot lately and I thought what happens when both sides the player and the foe using extreme speed?
The Pokemon with the higher speed will attack first.