fixing scoring bug