changed getscore to return object instead of double