public static Direction valueOfSingle(String d) {
      d = d.toLowerCase();
      if(d.equals("n")) return NORTH;
      if(d.equals("w")) return WEST;
      if(d.equals("e")) return EAST;
      if(d.equals("s")) return SOUTH;
      return null;
    }