Fixed bug with score not updating