Corrected crucial error in proyect_base_sate. Some division of integers, was not being dealt correctly, that is, it attempted to give an integer (which is not always the case)