&& !entity.isShutDown() && !entity.getPilot().isUnconcious()
    public static boolean canEntityFlee(Game game, int entityId) {        Entity entity = game.getEntity(entityId);        Coords pos = entity.getPosition();        return pos != null && entity.getWalkMP() > 0 && !entity.isProne()            && (pos.x == 0 || pos.x == game.board.width - 1                 || pos.y == 0 || pos.y == game.board.height - 1);    }