Beads and numbers game