added function to check if the intersection hits a stone or an empty space. Not tested yet. It also needs some changes like changing the return type etc.