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