What does the CPU do?

It handles the logic and physics of the gameIt handles the graphics

That's it!

The CPU handles the logic and physics of a game.