a simple chess engine for exercise