The div needs a few more conditions when...

if the length of x = 1 but y > 1 and vice versa