determine last player and if board is won