Updated code and simulates world with changeable table again