Python implementation of the Ghost Chess problem