implemented ajax method to calculate winner(s) for a match. Implemented beforeSave and afterFind for Match