fixed a bug of updating gameScore