Computing height of the swords