Thatโs a legal question, and the legal definition of a lottery might be defined differently in different areas. In my mind, yes, it very well might could be considered a lottery - but I am no legal professional and canโt advise you as such.
I would reach out to local entity and ask.