I'm no use at helping you modify the code, but perhaps if you use a spellchecker to be sure that the English words are spelled correctly (for example 'check' instead of 'chack') then maybe that would help you to refine your code? I can't even code in English so you are very brave to do it in a second language!
even English people can make one small spelling mistake that will make their code not work and sometimes only a small spelling error can make it all go wrong!
Good luck!