Functions to help backgammon play