starting to write a chess engine