Fixed the shadow system. Started to add networking code