Dynamic Framerate!

Changed that useless int frame variable to int time for time since last
frame. More dynamic!