protected PingResult pingDown() {
        for (int i = this.posY; i < BattleBotsGUI.instance.yDim; i++) {
            if (i == enemyPosY && this.posX == enemyPosX) {
                return new PingResult(i - this.posY - 1, true);
            }
            else if (BattleBotsGUI.instance.obstacles[this.posX][i]) {
                return new PingResult(i - this.posY - 1, false);
            }
            else if (i == BattleBotsGUI.instance.yDim - 1)
            {
                return new PingResult(BattleBotsGUI.instance.yDim - this.posY - 1, false);
            }
        }
        return null;
    }