game loop is completed