Chess engine written in haskell