public void resetState()
  {
      //bottom
      if (position == 1)
      {
          x = 200;
          y = 360;
      }
      //top
      else if (position == 2)
      {
          x = 200;
          y = 0;
      }
      //left
      else if (position == 3)
      {
          x = 0;
          y = 150;
      }
      //right
      else if (position == 4)
      {
          x = 390;
          y = 150;
      }
  }