I have written a simple, working tetris game with each block as an instance of a class singleblock.
class SingleBlock { public: SingleBlock(int, int)
It will lead to undefined behaviour and delete deallocates memory , it does not reinitialize it with zero .
If you want to make it zero out then do :
SingleBlock::~SingleBlock() { x = y = 0 ; }