I as an amateur programmer have been learning to make games in the old 13h mode and encountered a problem with the speed the game runs. It runs incredibly fast, and putting a delay of about 1 ms will prevent the game to run smoothly. How can I make my game runs slower based on the CPU speed?