moved chess engine into its own module