Added a render thread

Added a render thread so the rendering (and game) doesn't freeze so
much.