Added if sentence to only render objects that are inside the games screen.