Some bugs fixes

- Rank sometimes unavailable
- Stats unavailable on shared game if not logged
- Code Optimisation in the Api class