title: Should I be using global variables or passing the variables in java?
body: <p>I'm creating a 2d tile based sim game.
  I have a 2d array of gridSquares, which are accessed and changed from many different classes and methods.
  Should I pass the 2d array of gridSquares each time, or make it a global? Which is best practice?</p>
  
  <p>I was thinking, would it be an option to create a class which just contains a set of variables which all classes could extend? Is that a good or bad idea / not good practice?</p>
  
  <p>I'm still fairly new to java so I'm still learning lots!</p>
  
  <p>Thanks in advance.</p>
  
  <p>Rel</p>