The most complicated trolley problem