Rewrite the Code from the great SFML Book  "SFML Game Development" from Haller, Hansson and Moreira