public void addActor(Actor actor){
        int x;
        int y;
        
        do{
            x = (int)(Math.random() * width);
            y = (int)(Math.random() * height);
        }
        while(!tile(x,y).isPassable() || getActor(x,y) != null);
        
        actor.setPosX(x);
        actor.setPosY(y);
        actorList.add(actor);
    }