make reversi work and add ai logic