Fixed server side crashes

Putting rendering code on the server side. This is what happens when you
code without sleeping enough.