renamed Match folder to MatchEndpoint and refactory the matchHistory endpoint