if (getCritical(loc, i) != null && getCritical(loc, i).isDestroyed() == false && getCritical(loc, i).isDoomed() == false) {
if (getCritical(loc, i) != null && getCritical(loc, i).isHitable()) {
    public int getHitableCriticals(int loc) {        int empty = 0;                for (int i = 0; i < getNumberOfCriticals(loc); i++) {            if (getCritical(loc, i) != null                && getCritical(loc, i).isDestroyed() == false                && getCritical(loc, i).isDoomed() == false) {                empty++;            }        }                return empty;            }