added central game loop. rendering works.
fixed merge conflicts hopefully