extracted game make move function