implemented winning and losing