Implementation of history storing

Should be cleared whenever new match support is added

Signed-off-by: GreatEmerald <pastas4@gmail.com>