Implementation of Reversi in Python