$score += $score adds the current score to itself. Same as saying $score = $score * 2. And it happens every time you add a new total to it. Add a total, double what you have so far. Add another total to that, and double the new result. And so on. Which is almost certainly not how scores should work.