If you're looking for a gaming machine you should buy a proper computer. Laptops can be okay for gaming but are normally painfully expensive to have the same performance as a mediocre desktop. Either way, i5s will work perfectly fine for games as long as, as Maziar said, they're paired with a good GPU.