Depending on how far back you want the matrix to look, IE
BBB
PPB
PBP
Is 9 slots, if I was you I would setup 9 user vars, whatever name you like then each result just swap the values making the last var the current result, hope that makes sense to you, example
var9
var8
var7
var6
var5
var4
var3
var2
varcurrent
Then with each game var1 becomes the value of var2, var2 the value held by var3 and so on then add your trigger.
HTH