Python implementation of chess AI