simple dominoes game implementation in c