Add random item and add id in snake for player and ai