static boolean canEnter(char[][] board, int x, int y, boolean dressed) {
    switch (board[x][y]) {
    case '-':
    case '+':
    case '=':
    case '|':
      return false;
    case 'x':
      return dressed;
    default:
      return true;
    }
  }