addded more logic to buy equipment
updated upgrade and contract logic to send only relevant ones