porting reversi