Added prints, problem with tign(1,1)
Corrected the check, tign(1,1) should be tign(2,2)