i got this code from the spooky maze game but it says i have 0 fps and i put the variables before the loop