Modifications in dominos.cpp