Help needed with my EA - page 2

 
Sorry, but without seeing the whole code, it is not possible to guess what is happening.
 
Don't worry, I think the closing part is working correctly. I'm now thinking how to improve it. Thank you so much, you were extremely helpful.
Reason: