text-based chess engine in python