You're right about the excessive array references. They'll certainly be wrapped into something saner at a later point, but now implementing all the core rules is our top priority.