Using cancer cells as logic gates to determine what makes them move