Help for this page
...$tiles[$rx][$ry]...
my $tiles_for_rx = ($tiles[$rx] ||= []);
...$tiles_for_rx->[$ry]...