Performance Upgrade for server 
and Company: added a function to test if enough money is there