added quit to game loop