Added a function make_box in dominos.cpp and partially reduced the code length