Did a lot of cleaning up. One bug still left, you can only select units if you make a box from left to right and from up to down. Will fix this tomorrow. also will add comments tomorrow. Didn't include all of the networking yet because it contains errors.