removed bugs from checkRow and checkCol