combined two tests of winner checks for each direction