Algorithm of my bot