C# implementation of the Tetris program