Add chess engine code