PI-103 Fix hexagon matrix position detection