protected void moveUp() {
        if (this.posY > 0 && !((this.posY-1) == this.enemyPosY && this.posX == this.enemyPosX) && !(BattleBotsGUI.instance.obstacles[this.posX][this.posY-1])) {
            this.posY--;
        }
    }