Added some titles
Correct pixel distance algorithm + count num of blocks