protected void moveRight() {
        if (this.posX < (BattleBotsGUI.instance.xDim-1) && !(this.posY == this.enemyPosY && (this.posX+1) == this.enemyPosX) && !(BattleBotsGUI.instance.obstacles[this.posX+1][this.posY])) {
            this.posX++;
        }
    }