public void chooseImage() {
    // get the entity from the map that is on either side of this. if one is a
    // wall then we turn the graphic to a "-" if neither then we leave it as a
    // "|"
    if (getGameMap().isSceneryAtPoint(getX(), getY() + 1)) {
      if (getGameMap().getSceneryAtPoint(getX(), getY() + 1) instanceof Wall) {
        // DAD please make a note next time you try to change something (like
        // using character codes instead of actual characters)
        // I had a very weird bug where walls were 2s instead of lines and I had no idea what happened
        wallGraphic = "|";
      }
    }
    if (getGameMap().isSceneryAtPoint(getX(), getY() - 1)) {
      if (getGameMap().getSceneryAtPoint(getX(), getY() - 1) instanceof Wall) {
        wallGraphic = "|";
      }
    }
  }