added add function page, rest and backend functions
tournament now autocomplete all the matches not played then stops