private boolean processInterception() { String str = getQuadrantXY(bullet.getX(), bullet.getY()); int i = Integer.valueOf(str.substring(0, 1)); int q = Integer.valueOf(str.substring(2, str.length())); if (i >= battleField.getBattleField().length - battleField.getBattleField().length && i < battleField.getBattleField().length && q >= battleField.getBattleField().length - battleField.getBattleField().length && q < battleField.getBattleField().length && battleField.scanQuadrant(i, q) == "B") { battleField.updateQuadrant(i, q, " "); return true; } else return false; }