I nees help deciding on what laptop to buy. I'm mostly going to be gaming. The two laptops are below?

I'm mostly going to be using the laptop for gaming and the game I want to play are like Counter Strike Global Offensive, Battlefield 3,
Minecraft, Need for speed world and games like these.

The two laptops are
Lenovo: G500Lenovo G500 15.6-inch Laptop - Black (Intel Core i3-3110M 2.4 GHz, 8 GB RAM, 1 TB HDD, DVDRW, Webcam, BT, Integrated Graphics, Windows 8)

And a hp pavilion:
Intel Core i3 3217M dual core processor.
1.8GHz processor speed.
8GB RAM.
1024GB hard drive.
Microsoft Windows 8.
Display features:
15.6 inch screen.
High definition display.
Resolution 1366 x 768 pixels.
Graphics:
Intel HD Graphics 4000.
Shared graphics card.
Interfaces and connectivity:
1 USB 2.0 port.
2 USB 3.0 ports.
1 Ethernet port.
1 HDMI port.

The hp pavilion. I have a lenovo laptop and it freezes up all the time plus the internet is slow

Hp pavilion

Go with the one which has a dedicated graphics card.

They aren't good for gaming. Needs a dedicated graphics card to run games like Boyfriend. You'll be able to run CSGO with settings lowered though.