Rewrite of my tetris clone in C++