If deleteBlock returned the deleted block, it could really simplify the moveBlock function