Merged SFML and game loops