separation render and game