SFML Game dev chapter 7 from the book