private int GetEntrancePositionIndex(EntrancePoint entrancePoint) { return entrancePoint.RelativePos.Y * Size.Width + entrancePoint.RelativePos.X; }