this is c code for the game backgamon.