revised update scores code in flappy