Fixed a few bugs. It's working much better now. Still needs the network optimizing