added the streak calculation to the server