title: Rpg game in C++ x can go below 0?
body: <p>I'm making a c++ rpg.</p>
  
  <p>here is my code:
  <a href="http://pastebin.com/cyR5bzKR" rel="nofollow">http://pastebin.com/cyR5bzKR</a></p>
  
  <p>And it let's me go to -1 and then i can't go anywhere.
  I can also go to 4 and then it i can't go anywhere.</p>
  
  <p>Any help?</p>
  
  <p>I don't want this to be over complicated.</p>
  
  <p>P.S. I am using Code::Blocks I don't think that's the problem.</p>