precompute game enders, avoid losses