Implemented isCheckByHorizontal and isCheckByVertical -trace file included