i tried using screen.update but the game stops working...
screen.flip() is fine for updating, but always try to use screen.blit() and draw sprites, even if they’re just a white rectangle. You will almost never use the normal draw commands.