added id release stack to reuse unallocated ids (entities are now created with an unknow id an set with the AddEntity function)