Changed framework to include better support for different renderers and updated game loop to be more comprehensible and simple