The i5 is a faster CPU. The A8 has a faster on-board GPU.
If the i5 has a discrete GPU, it will probably be a better gamer (depending on which GPU). If not, the A8 will be a better gamer.
Is there any reason why you want a laptop for gaming? Are you trying to decide between two specific ones?