public void UpdateFallingPiece() { if (currentFallingPiece != null) { if (!currentFallingPiece.IsObstructed(TetrisBoard.ObstructionDirection.DOWN)) { // move object currentFallingPiece.Move(1, 0); currentFallingPiece.RefreshView(); } else if (currentFallingPiece.IsObstructed(TetrisBoard.ObstructionDirection.DOWN)) { tetrisBoard.AttachPiece(currentFallingPiece); tetrisBoard.CheckRowClear(); currentFallingPiece = null; } } }