Optimization

*Initiated a rewrite of the netcode
*Restructured the menucode