setting up final checkforWinningMoves refactor
final refactor of checkForWinningMoves