Implemented check affordability and clean up

I've gone through some of the game functions to make sure they are being called in other files. Someone really needs to go through the whole project and do this.