Improve SFML code to keep window open during last iteration