public void update(){
    //this should do the player's action, then whatever actions any other entity has to do based on speed and such
    LinkedList<CActor> moveList = generateList();
    for(CActor actor: moveList){
      if(!actor.owner.live)continue;
      if(actor.owner.getComponent(CLOS.class) != null){
        ((CLOS)actor.owner.getComponent(CLOS.class)).update();
      }
      if(actor.owner == player){
        repaint();
      }
      actor.act();
      if(!player.live){
        System.out.println("You died");
        gui.died();
        return;
      }
      if(changedMap){
        changedMap = false;
        break;
      }
    }
  }