At the beggining, you guess who will win. (Its totally random, so you cannot cheat.) Then click on the square and by the colour that shows on it, the balls move. The one that first gets to the end, wins. If it does not work, just click on the flag few more times.