Merge pull request #50 from elemoine/stacklight-grains-for-mine

Fix the grains_for_mine function