changed to redis database to save points
check is length exist instead of check if length = 0
changed to check if score exist
added config file, Changed points to 1
added extra check when there's no data in redis