Fixed buying when you can't afford it.
Fixed mistake after changing variable names.