basic game loop and resource and input managers, still some broken things