Implementing random event gen.
fixed item generation bugs