Chess bot from scratch