Updated code to fix issues when the user has more points than there should be available. Fixes #3