add player break logic and add output class