Fixing bug and calculating socre when you save a match result