initialize score to 0 and parseInt when necessary