Fixed NDS and network bugs. Fixed errors when rotating the screen and
pausing the application.