&& (pos.x == 0 || pos.x == game.board.getWidth() - 1 || pos.y == 0 || pos.y == game.board.getHeight() - 1);
&& (pos.x == 0 || pos.x == game.getBoard().getWidth() - 1 || pos.y == 0 || pos.y == game.getBoard().getHeight() - 1);
    public boolean canFlee() {        Coords pos = getPosition();        return pos != null && getWalkMP() > 0 && !isProne() && !isStuck()            && !isShutDown() && !getCrew().isUnconscious()            && (pos.x == 0 || pos.x == game.board.getWidth() - 1                || pos.y == 0 || pos.y == game.board.getHeight() - 1);    }