Intelligent domino, playing domino from computer's point of view