Board cheking for win and draw