a multiplication game main algortihm
handle limit cases