added diagonal lines. Introduced bug as a result.