The Mathematical Theory Behind Backgammon