program to play the 24 arithmetic game