Adjusted the flip() function so correct score is shown