all the last changes
Ported to SFML and XCode