A Bayesian Model for Plan Recognition in RTS Games applied to StarCraft