@Override
    public void visit(Identifiable thing) {
        if (thing.isBullet()) {
        	this.health -= player.getPower();
        	if (health < 1) {
        		this.dead = true;
        		this.panel.removeSprite(this);
        	}
        } else if(thing.isPlayer()) {
        	GameDir toMove = GameDir.UP;
        	switch (player.getDirection()) {
        		case UP: 
        			toMove = GameDir.DOWN;
        			break;
        		case DOWN: 
        			toMove = GameDir.UP;
        			break;
        		case RIGHT: 
        			toMove = GameDir.LEFT;
        			break;
        		case LEFT: 
        			toMove = GameDir.RIGHT;
        			break;
        	}
        	this.player.damage(this.power, toMove);
        }
    }