Trump resort gunman admits to crime in funny exchange with judge