Moved the render method into update/draw loop