added .to_i to item[defindex] in creater_player_items method