title: Try to rewrite engine from SDL to SFML, wrong scope of sf::RenderWindow?
body: <p>I have problem with display image (I tried to rewrite engine from SDL to SFML 2.0; engine downloaded from: 
  <a href="http://gamedevgeek.com/tutorials/managing-game-states-in-c/" rel="nofollow">http://gamedevgeek.com/tutorials/managing-game-states-in-c/</a>
  )</p>
  
  <p>I have problem with especially that part of code that is in introstate.cpp.</p>
  
  <p>The program compiles and create window (just for one sec) and then vanishes with no reaction and no render anything (it should display image).</p>
  
  <p>I think it has to do with range of object sf::RenderWindow MarioClone. I mean it was declared in few headers and used in variety methods, so I think there's misunderstanding with pointing to the specific window that is created. Should I use "extern" keyword somwhere or what?</p>
  
  <p>I leave link to github because code is in many files and even one file contains a lot of code and don't want to paste it here (it would be hard to read).
  <a href="https://github.com/shahar23/MarioClone" rel="nofollow">https://github.com/shahar23/MarioClone</a>
  (And yes - the code has previous original SDL commented to understand easily what should be put in methods instead)</p>