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