Drawing at a set frame rate. Also got rid of spawning thread