Refactored cell generator

Changed CellBehaviour, added level state cell generator.