python implementation of the board game