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