computer will not play infinite moves