check the pattern in Player1 clicked, and apply color for the winner