Working solution without borders
"Bugged" solution without borders
Solution with borders