working on gem stones problem
got simple solution for gem stones
got working gem stones