Implemented unit, cell and building classes.