SFML main implementation restored