Variant of the sand falling game programmed in C++