Simply put: The i5 has 4 fast threads, the FX has 8 slower threads.
Games only tend to use up to 4 threads/cores; only a few games(and I'm talking single digits here) use more than that. Therefore for gaming, the i5's 4 faster threads will be better than the FX's 8 slower threads.