Almost for sure the mask calculation is wrong

Debug process ampliated
Save and Load still not functioning!