Add winning and losing logic