Changed main code to use the UserInput and Renderer code