Set the railway points so every ball rolls into its own colour, knowing each point flips after a ball passes.