First algorith for searching main character