implemented first diagonal checking + comments