the point is that ы goes with hard consonants while и goes with soft ones.
basicly. in hard consonants the back of the tongue goes down and in soft ones it goes up. as in pronouncing the vowel ee. ...