F# backend of the game LSMTD.