a new function that add randomize stuff to the market
fix  some errors and fails i hope this will have a end of the fucking bugs