moved sfml clock to main