function to change player money