added inverted diagonal win logic