Working on a decent, stable game loop