Added logic to identify and declare if player 1 wins and end game