Fixed a bug where the weight can be less than 0.
Fixed a bug where the server tried to pick puzzles that are rated far away from the current user's rating.