Comments added, bug with the scores incrementation has been corrected