Partition algorithm can be used in genmove