Added UserInput class
Render and UserInput changed to singletons