calculating user points and badge system added

* needs more troubleshooting