@TinyTiger,
Yes, your grandparents have custody. They are the boss. That is what custody means (whether it is temporary or permanent doesn't matter).
If they say it is OK to stay with a friend, then you can say over with a friend. If your grandparents want to talk to a lawyer, that it between them and the lawyer.
If they say it is ok, than it is ok.