Add random opponent generator to assign function