making row-checking mechanism to see if you've won. dunno why it triggers on ever click