added basic world logic