Added window to server
Improved network code