A boardgame engine