Main logic

Now it's working.
lol No problem at all, thank you for doing your best in English, on the contrary ;-)