Splited the Init Function of Environment.hpp in initDevices and initGrids