better positioning logic
When asking for a specific layout direction, try very hard at all the cells that are available in that given direction instead of always start to compute at a new row and wrong column