Single-threaded game loop fixed, but badly fixed