added new functions
now can receive user match history
match_history renamed to history. Now receives Hash as a parameter