Various changes in player.as to include the UI