Then basically I have some code set up to display the randomized moves such as left right up & down (randomized moving entity), but because the time.sleep is in the while loop, it renders the game at 0.5 fps (freezes for 2 seconds then a single/what seems like a single frame), as this function was obviously not meant for pygame, so is there a way for delays that does not involve freezing the rest of the code & only affecting the indented ones?