Implemented networking

Will now interface with the server, getting data and playing games. Additionally, many bugs fixed.