a very simplistic genmove implementation