added scoring and defined win conidition for both sides