added diagonal win logic