You must take the right line to collect the maximum amount of yellow boxes so you can deliver all people at the end. Swipe left pr right to change line while avoiding red obstacles.