Final version of dominos.cpp, dominos.hpp and main.cpp with minimized code