The numbers on the cubes are randomised and the cube sorts them into boxes based on whether they are odd or even numbers.
I know this isn't the best way I could have coded this, but at least it works! =D