// edit: this is a dumb solution that might work,lowkey time to gamble. * Create an N x M grid such that every valid cross contains 0-4 exactly once.