incorporating reversi logic