reinitialized basic game loop