refactored cell into world and cell