The core problem was devising ways to sort, lift, place, and dump marbles in their correct ... math to determine each marble’s color. After trying several different mechanical sorting mechanisms ...