Rotate the rod connecting the 2 marbles so that the marbles of the same color collide with each other and avoid the marbles moving towards the opposite wall.