For gaming the Fx-6300 is more than enough for most games, if you decide to go with the 8 core CPU then get the 8320 and for the motherboard I think the GA-970A-UD3P will do the job it has 8+2 phase so it's awesome for the 8 cores FX CPU, the price is nice too 90$ in NewEgg.
FX-6350 vs I3-4170...