Basic chess engine in Python